import { useRoute } from 'vue-router'
import { onMounted, ref,onActivated} from 'vue'
import { getMovieDetailHttp } from '../../../Http/index'
export default () => {
    const $route = useRoute();
    let item = ref({})

    onMounted(async () => {
        let { id } = $route.query;
        let data = await getMovieDetailHttp(id);
        item.value = data.result;
    })
    return { item }
}